<?php
class App_Module_Admin_Component_Users_Tpl_Form_Field_Usergroups extends App_Tpl_Form_Field
{
    protected function RenderField()
    {
    	Mozg::SubAction()->Add('RequiredJS', array($this, 'FieldJs'), array(), 'UserGroupsField');
    	
    	$this->obj = Mozg_Registry::Get('userObject');
    	return $this->render('users/field/_groups.phtml');
    }
    
    public function FieldJs()
    {
    	return $this->render('users/field/js/_groups.js');
    }
}